import Layout from '@/layout/index.vue';
import * as i18n from '@/utils';
let marketing = {
	path: '/marketing',
	component: Layout,
	name: '营销活动',
	meta: {
	  title: i18n.t('router.Marketing'),
	  icon: 'dashboard'
	},
	children: [
		{
			path: '/marketing/preferential',
		  component: () => import('@/views/marketing/preferential/index.vue'),
		  name: '优惠券',
		  meta: { title: i18n.t('router.coupon') },
		  isPermiss:'/management/activity.activity_coupon/getList'
		},
		{
			hidden: true,
		  path: '/marketing/preferential/add_info',
		  component: () => import('@/views/marketing/preferential/add_info/index.vue'),
			name: '添加优惠券',
			meta: { title: i18n.t('router.addCoupon'),induce:'/marketing/preferential' },
		  	isPermiss:'/management/activity.activity_coupon/add'
		},
		{
			hidden: true,
		  path: '/marketing/preferential/details_info',
		  component: () => import('@/views/marketing/preferential/details_info/index.vue'),
			name: '修改优惠券',
			meta: { title: i18n.t('router.modifyCoupon'),induce:'/marketing/preferential' },
		  	isPermiss:'/management/activity.activity_coupon/update'
		},
		
		{
			path: '/marketing/reduction',
		  component: () => import('@/views/marketing/reduction/index.vue'),
		  name: '满减活动',
		  meta: { title: i18n.t('router.Full') },
		 isPermiss:'/management/activity.activity_fd/getList'
		},
		{
			hidden: true,
		  path: '/marketing/reduction/add_info',
		  component: () => import('@/views/marketing/reduction/add_info/index.vue'),
			name: '添加满减活动',
			meta: { title: i18n.t('router.addFull') ,induce:'/marketing/reduction' },
		 	isPermiss:'/management/activity.activity_fd/add'
		},
		{
			hidden: true,
		  path: '/marketing/reduction/details_info',
		  component: () => import('@/views/marketing/reduction/details_info/index.vue'),
			name: '修改满减活动',
			meta: { title: i18n.t('router.modifyFull'),induce:'/marketing/reduction' },
		 	isPermiss:'/management/activity.activity_fd/update'
		},
		{
			path: '/marketing/guess',
		  component: () => import('@/views/marketing/guess/index.vue'),
		  name: '付费抽奖',
		  meta: { title: i18n.t('router.lottery') },
		 isPermiss:'/management/activity.activity_lottery/getList'
		},
		{
			hidden: true,
		  path: '/marketing/guess/add_info',
		  component: () => import('@/views/marketing/guess/add_info/index.vue'),
			name: '添加付费抽奖',
			meta: { title: i18n.t('router.addLottery'),induce:'/marketing/guess' },
		   isPermiss:'/management/activity.activity_lottery/add'
		},
		{
			hidden: true,
		  path: '/marketing/guess/details_info',
		  component: () => import('@/views/marketing/guess/details_info/index.vue'),
			name: '修改付费抽奖',
			meta: { title: i18n.t('router.modifyLottery'),induce:'/marketing/guess' },
		   isPermiss:'/management/activity.activity_lottery/update'
		},
		{
			hidden: true,
		  path: '/marketing/guess/apply_info',
		  component: () => import('@/views/marketing/guess/apply_info/index.vue'),
			name: '查看抽奖记录',
			meta: { title: i18n.t('router.ViewLottery'),induce:'/marketing/guess' },
		   isPermiss:'/management/activity.activity_lottery_used/getList'
		},
		{
		  path: '/marketing/pickupcode',
		  component: () => import('@/views/marketing/pickupcode/index.vue'),
		  name: '取货码',
		  meta: { title: i18n.t('router.code') },
		 isPermiss:'/management/activity.activity_pick/getList'
		},
		{
			hidden: true,
		  path: '/marketing/pickupcode/add_info',
		  component: () => import('@/views/marketing/pickupcode/add_info/index.vue'),
			name: '添加取货码',
			meta: { title: i18n.t('router.addCode'),induce:'/marketing/pickupcode' },
		 	isPermiss:'/management/activity.activity_pick/add'
		},
		{
			hidden: true,
		  path: '/marketing/pickupcode/details_info',
		  component: () => import('@/views/marketing/pickupcode/details_info/index.vue'),
			name: '修改取货码',
			meta: { title: i18n.t('router.modifyCode'),induce:'/marketing/pickupcode' },
		 	isPermiss:'/management/activity.activity_pick/update'
		},{
			hidden: true,
		  path: '/marketing/pickupcode/details/pickupCodeDetails',
		  component: () => import('@/views/marketing/pickupcode/details/pickupCodeDetails.vue'),
			name: '取货码详情',
			meta: { title: i18n.t('router.detailsCode'),induce:'/marketing/pickupcode' },
		 	isPermiss:'/management/activity.activity_pick_code/getList'
		},{
			hidden: true,
		  	path: '/marketing/preferential/details/preferentialDetails',
		  	component: () => import('@/views/marketing/preferential/details/preferentialDetails.vue'),
			name: '优惠券详情',
			meta: { title: i18n.t('router.CouponDetails'),induce:'/marketing/preferential' },
		 	isPermiss:'/management/activity.activity_coupon_used/getList'
		},{
			hidden: true,
		  	path: '/marketing/reduction/details/reductionDetails',
		  	component: () => import('@/views/marketing/reduction/details/reductionDetails.vue'),
			name: '满减活动详情',
			meta: { title: i18n.t('router.FullDetails'),induce:'/marketing/reduction' },
			isPermiss:'/management/activity.activity_fd_used/getList'
		},{
			hidden: true,
		  	path: '/marketing/guess/details/guessDetails',
		  	component: () => import('@/views/marketing/guess/details/guessDetails.vue'),
			name: '付费抽奖详情',
			meta: { title: i18n.t('router.PaidDetails'),induce:'/marketing/guess' },
			isPermiss:'/management/activity.activity_fd_used/getList'
		}
	]
}

export default marketing;